@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins',sans-serif;
}

html,body {
    display: grid;
    height: 100%;
    place-items: center;
}

::selection {
    color: #fff;
    background: #007bff;
}

::-webkit-scrollbar {
    width: 3px;
    border-radius: 25px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ddd;
}

::-webkit-scrollbar-thumb:hover {
    background:#ccc;
}

.wrapper {
    width: 370px;
    background: #fff;
    border-radius: 5px;
    border: 1px solid lightgray;
    border-top: 0px;
}

.wrapper .title {
    background: #007bff;
    color: #fff;
    font-size: 20px;
    font-weight: 500px;
    line-height: 60px;
    text-align: center;
    border-bottom: 1px solid #006fe6;
}

.wrapper .form {
    padding: 20px 15px;
    min-height: 400px;
    max-width: 400px;
    overflow-y: auto;
}

.wrapper .form .inbox {
    width: 100px;
    display: flex;
    align-items: baseline;
}

.wrapper .form .user-inbox {
    justify-content: flex-end;
    margin: 13px 0;
}

.wrapper .form .inbox .icon {
    height: 40px;
    width: 40px;
    color: #fff;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    font-size: 18px;
    background: #007bff;
}


.wrapper .form .inbox .msg-header {
    max-width: 53%;
    margin-left: 10px;
}

.wrapper .inbox .msg-header p {
    color:  #fff;
    background: #007bff;
    border-radius: 10px;
    padding: 8px 10px;
    width: 220px;
    font-size: 14px;
    word-break: break-all;
}

.form .user-inbox .msg-header p  {
    color:  #333;
    background: #efefef;
}

.wrapper .typing-field {
    display: flex;
    height: 60px;
    width: 100%;
    align-items: center;
    justify-content: space-evenly;
    background:  #efefef;
    border-top: 1px solid #d9d9d9;
}

.wrapper .typing-field .input-data {
    height: 40px;
    width: 335px;
    position: relative;
}

.wrapper .typing-field .input-data  input {
    height: 100%;
    width: 100%;
    outline: none;
    border: 1px solid transparent;
    padding: 0 80px 0 15px;
    border-radius: 3px;
    font-size: 15px;
    background: #fff;
    transition: all 0.3s ease;
}

.typing-field .input-data input:focus {
    border-color: rgba(0, 123, 255, 0.8);
}

.input-data input::placeholder {
    color: #bfbfbf;
}

.wrapper .typing-field .input-data button {
    position:absolute;
    right: 2px;
    top: 50%;
    height: 30px;
    width: 30px;
    color: #006fef;
    font-size: 1.25rem;
    cursor: pointer;
    outline: none;
    opacity: 0;
    pointer-events: none;
    /* border-radius: 3px; */
    background: transparent;
    /* border: 1px solid #007bff; */
    border: none;
    transform:  translateY(-50%);
    transition: all 0.3s ease;
}

.wrapper .typing-field .input-data input:valid ~ button {
    opacity: 1;
    pointer-events: auto;
}

